﻿<UserControl x:Class="CoolCode.Controls.Test.ModalDialogTest"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"  
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <Grid x:Name="LayoutRoot" Background="White">
        <StackPanel Orientation="Vertical">
            <TextBlock FontSize="30" HorizontalAlignment="Center">This is the main page.</TextBlock>
            <Button x:Name="btnOpen1" Content="Open Login form" Click="btnOpen_Click" Width="150" />
            <Button x:Name="btnOpen2" Content="Open another form" Click="btnOpen2_Click" Width="150" Margin="0,10" />
        </StackPanel>
        <!-- 占位元素，用于在其中加载模态窗口 -->
        <!--<Border x:Name="placeHolder" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"
                Visibility="Collapsed"
                Background="#ff8a8a8a" Opacity="0.765" />-->
    </Grid>

</UserControl>
